package modele.beanEntity;

import java.io.Serializable;

public class Comment implements Serializable {
	
	private Integer id;
	private String txt;
	private Integer rating = 5;
	private User user;
	private Recipe recipe;
	
	public Comment(){}
	
	public Comment(Integer id, String txt, Integer rating, User user,
			Recipe recipe) {
		super();
		this.id = id;
		this.txt = txt;
		this.rating = rating;
		this.user = user;
		this.recipe = recipe;
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTxt() {
		return txt;
	}
	public void setTxt(String txt) {
		this.txt = txt;
	}
	public Integer getRating() {
		return rating;
	}
	public void setRating(Integer rating) {
		this.rating = rating;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Recipe getRecipe() {
		return recipe;
	}
	public void setRecipe(Recipe recipe) {
		this.recipe = recipe;
	}
	@Override
	public String toString() {
		return "Comment [id=" + id + ", txt=" + txt + ", rating=" + rating
				+ ", user=" + user + ", recipe=" + recipe + "]";
	}
	

}
